package metier;

import java.util.ArrayList;
import java.util.HashMap;

import test.MenuPrincipal;

public class Employe
{
	private static int nbEmploye = 0;
	private int idEmploye;
	private String nomEmploye;
	private String prenomEmploye;
	private int telephone;
	private ArrayList<Employe> lesEmployes;

	public Employe(String nomEmploye, String prenomEmploye,	int telephone)
	{
	super();
	this.idEmploye = Employe.nbEmploye + 1;
	this.nomEmploye = nomEmploye;
	this.prenomEmploye = prenomEmploye;
	this.telephone = telephone;
	lesEmployes = new ArrayList<Employe>();
	Employe.nbEmploye = Employe.nbEmploye + 1;
	}

	public int getIdEmploye()
	{
		return idEmploye;
	}

	public void setIdEmploye(int idEmploye)
	{
		this.idEmploye = idEmploye;
	}

	public String getNomEmploye()
	{
		return nomEmploye;
	}

	public void setNomEmploye(String nomEmploye)
	{
		this.nomEmploye = nomEmploye;
	}

	public String getPrenomEmploye()
	{
		return prenomEmploye;
	}

	public void setPrenomEmploye(String prenomEmploye)
	{
		this.prenomEmploye = prenomEmploye;
	}

	public int getTelephone()
	{
		return telephone;
	}

	public void setTelephone(int telephone)
	{
		this.telephone = telephone;
	}

	public ArrayList<Employe> getLesEmployes()
	{
		return lesEmployes;
	}
												
	public String toString()
	{
		return idEmploye + " - " + nomEmploye
				+ " " + prenomEmploye;
	}	
	
}
